<%-- 
    Document   : index
    Created on : Nov 30, 2011, 9:27:53 AM
    Author     : Giuseppe
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World Google!</h1>
        <%-- http://netbeans.org/kb/docs/websvc/rest.html
            Services->Google->getGoogleMap fare Drag and Drop sulla pagina JSP oppure Facade.
            Andare in Project-> Source Packages -> org.netbeans.saas.google-> googlemapservice.properties e inserire
            la chiave ottenuta tramite il link: http://code.google.com/apis/maps/signup.html
        --%>
        <%@ page import="org.netbeans.saas.*, org.netbeans.saas.google.*" %>

        <%

            try {
                String address = "16 Network Circle, Menlo Park";
                java.lang.Integer zoom = 15;
                String iframe = "false";

                RestResponse result = GoogleMapService.getGoogleMap(address, zoom, iframe);
                //TODO - Uncomment the print Statement below to print result.
                out.println("The SaasService returned: "+result.getDataAsString());
            } catch (Exception ex) {
                ex.printStackTrace();
            }

        %>

    </body>
</html>
